$("#roles").html("<%= escape_javascript(render :partial => "roles", :locals => {:roles => @entity}) %>");
$("#class-pag").html("<%= escape_javascript(render :partial => 'layouts/pagination', :locals => {:entity => @entity}) %>");